<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/news.css"/>
	</head>
	<body>
		<div class="web">
			<header>
				<div class="img"><a href="Apply-for-supplier.html"><img src="img/icon_back.png"/></a></div>
				<div class="nav">
					<span><a href="agent-news.html">代理商消息</a></span>
					<span class="active"><a href="supplier-news.html">供应商消息</a></span>
				</div>
			</header>
			
			<section>
				<div class="news">
					<div class="msg">
						<img src="img/avatar1.jpg"/>
						<img src="img/msg.png"/>
					</div>
					<div class="time">
						<p>18:52:16</p>
					</div>
					<div class="text">
						<h5>MARUKO</h5>
						<p>恭喜您！成功成为本店的代理商！</p>
					</div>
				</div>
				<div class="news">
					<div class="avatar">
						<img src="img/avatar1.jpg"/>
					</div>
					<div class="time">
						<p>12:22:35</p>
					</div>
					<div class="text">
						<h5>SUNDAY</h5>
						<p>恭喜您！成功成为本店的代理商！</p>
					</div>
				</div>
				<div class="news">
					<div class="avatar">
						<img src="img/avatar1.jpg"/>
					</div>
					<div class="time">
						<p>12:22:35</p>
					</div>
					<div class="text">
						<h5>SUNDAY</h5>
						<p>恭喜您！成功成为本店的代理商！</p>
					</div>
				</div>
				<div class="news">
					<div class="avatar">
						<img src="img/avatar1.jpg"/>
					</div>
					<div class="time">
						<p>12:22:35</p>
					</div>
					<div class="text">
						<h5>SUNDAY</h5>
						<p>恭喜您！成功成为本店的代理商！</p>
					</div>
				</div>
				<div class="foot">
					
				</div>
			</section>
		</div>
		
		<script>
			document.body.style.height = window.innerHeight + "px";

			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 640) + 'px';
				//字体大小   =1个rem单位表示多少个像素*(设备的宽度 /设计宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>
	</body>
</html>

